package com.main.heath.po;

import java.util.ArrayList;
import java.util.List;

public class PingDataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PingDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStartipIsNull() {
            addCriterion("StartIP is null");
            return (Criteria) this;
        }

        public Criteria andStartipIsNotNull() {
            addCriterion("StartIP is not null");
            return (Criteria) this;
        }

        public Criteria andStartipEqualTo(String value) {
            addCriterion("StartIP =", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipNotEqualTo(String value) {
            addCriterion("StartIP <>", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipGreaterThan(String value) {
            addCriterion("StartIP >", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipGreaterThanOrEqualTo(String value) {
            addCriterion("StartIP >=", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipLessThan(String value) {
            addCriterion("StartIP <", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipLessThanOrEqualTo(String value) {
            addCriterion("StartIP <=", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipLike(String value) {
            addCriterion("StartIP like", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipNotLike(String value) {
            addCriterion("StartIP not like", value, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipIn(List<String> values) {
            addCriterion("StartIP in", values, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipNotIn(List<String> values) {
            addCriterion("StartIP not in", values, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipBetween(String value1, String value2) {
            addCriterion("StartIP between", value1, value2, "startip");
            return (Criteria) this;
        }

        public Criteria andStartipNotBetween(String value1, String value2) {
            addCriterion("StartIP not between", value1, value2, "startip");
            return (Criteria) this;
        }

        public Criteria andToipIsNull() {
            addCriterion("ToIP is null");
            return (Criteria) this;
        }

        public Criteria andToipIsNotNull() {
            addCriterion("ToIP is not null");
            return (Criteria) this;
        }

        public Criteria andToipEqualTo(String value) {
            addCriterion("ToIP =", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipNotEqualTo(String value) {
            addCriterion("ToIP <>", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipGreaterThan(String value) {
            addCriterion("ToIP >", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipGreaterThanOrEqualTo(String value) {
            addCriterion("ToIP >=", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipLessThan(String value) {
            addCriterion("ToIP <", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipLessThanOrEqualTo(String value) {
            addCriterion("ToIP <=", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipLike(String value) {
            addCriterion("ToIP like", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipNotLike(String value) {
            addCriterion("ToIP not like", value, "toip");
            return (Criteria) this;
        }

        public Criteria andToipIn(List<String> values) {
            addCriterion("ToIP in", values, "toip");
            return (Criteria) this;
        }

        public Criteria andToipNotIn(List<String> values) {
            addCriterion("ToIP not in", values, "toip");
            return (Criteria) this;
        }

        public Criteria andToipBetween(String value1, String value2) {
            addCriterion("ToIP between", value1, value2, "toip");
            return (Criteria) this;
        }

        public Criteria andToipNotBetween(String value1, String value2) {
            addCriterion("ToIP not between", value1, value2, "toip");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeIsNull() {
            addCriterion("pingStartTime is null");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeIsNotNull() {
            addCriterion("pingStartTime is not null");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeEqualTo(String value) {
            addCriterion("pingStartTime =", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeNotEqualTo(String value) {
            addCriterion("pingStartTime <>", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeGreaterThan(String value) {
            addCriterion("pingStartTime >", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeGreaterThanOrEqualTo(String value) {
            addCriterion("pingStartTime >=", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeLessThan(String value) {
            addCriterion("pingStartTime <", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeLessThanOrEqualTo(String value) {
            addCriterion("pingStartTime <=", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeLike(String value) {
            addCriterion("pingStartTime like", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeNotLike(String value) {
            addCriterion("pingStartTime not like", value, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeIn(List<String> values) {
            addCriterion("pingStartTime in", values, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeNotIn(List<String> values) {
            addCriterion("pingStartTime not in", values, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeBetween(String value1, String value2) {
            addCriterion("pingStartTime between", value1, value2, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingstarttimeNotBetween(String value1, String value2) {
            addCriterion("pingStartTime not between", value1, value2, "pingstarttime");
            return (Criteria) this;
        }

        public Criteria andPingtimeIsNull() {
            addCriterion("pingTime is null");
            return (Criteria) this;
        }

        public Criteria andPingtimeIsNotNull() {
            addCriterion("pingTime is not null");
            return (Criteria) this;
        }

        public Criteria andPingtimeEqualTo(String value) {
            addCriterion("pingTime =", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeNotEqualTo(String value) {
            addCriterion("pingTime <>", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeGreaterThan(String value) {
            addCriterion("pingTime >", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeGreaterThanOrEqualTo(String value) {
            addCriterion("pingTime >=", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeLessThan(String value) {
            addCriterion("pingTime <", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeLessThanOrEqualTo(String value) {
            addCriterion("pingTime <=", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeLike(String value) {
            addCriterion("pingTime like", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeNotLike(String value) {
            addCriterion("pingTime not like", value, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeIn(List<String> values) {
            addCriterion("pingTime in", values, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeNotIn(List<String> values) {
            addCriterion("pingTime not in", values, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeBetween(String value1, String value2) {
            addCriterion("pingTime between", value1, value2, "pingtime");
            return (Criteria) this;
        }

        public Criteria andPingtimeNotBetween(String value1, String value2) {
            addCriterion("pingTime not between", value1, value2, "pingtime");
            return (Criteria) this;
        }

        public Criteria andTtlIsNull() {
            addCriterion("TTL is null");
            return (Criteria) this;
        }

        public Criteria andTtlIsNotNull() {
            addCriterion("TTL is not null");
            return (Criteria) this;
        }

        public Criteria andTtlEqualTo(Integer value) {
            addCriterion("TTL =", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlNotEqualTo(Integer value) {
            addCriterion("TTL <>", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlGreaterThan(Integer value) {
            addCriterion("TTL >", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlGreaterThanOrEqualTo(Integer value) {
            addCriterion("TTL >=", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlLessThan(Integer value) {
            addCriterion("TTL <", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlLessThanOrEqualTo(Integer value) {
            addCriterion("TTL <=", value, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlIn(List<Integer> values) {
            addCriterion("TTL in", values, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlNotIn(List<Integer> values) {
            addCriterion("TTL not in", values, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlBetween(Integer value1, Integer value2) {
            addCriterion("TTL between", value1, value2, "ttl");
            return (Criteria) this;
        }

        public Criteria andTtlNotBetween(Integer value1, Integer value2) {
            addCriterion("TTL not between", value1, value2, "ttl");
            return (Criteria) this;
        }

        public Criteria andTranbytesIsNull() {
            addCriterion("tranBytes is null");
            return (Criteria) this;
        }

        public Criteria andTranbytesIsNotNull() {
            addCriterion("tranBytes is not null");
            return (Criteria) this;
        }

        public Criteria andTranbytesEqualTo(Long value) {
            addCriterion("tranBytes =", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesNotEqualTo(Long value) {
            addCriterion("tranBytes <>", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesGreaterThan(Long value) {
            addCriterion("tranBytes >", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesGreaterThanOrEqualTo(Long value) {
            addCriterion("tranBytes >=", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesLessThan(Long value) {
            addCriterion("tranBytes <", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesLessThanOrEqualTo(Long value) {
            addCriterion("tranBytes <=", value, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesIn(List<Long> values) {
            addCriterion("tranBytes in", values, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesNotIn(List<Long> values) {
            addCriterion("tranBytes not in", values, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesBetween(Long value1, Long value2) {
            addCriterion("tranBytes between", value1, value2, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andTranbytesNotBetween(Long value1, Long value2) {
            addCriterion("tranBytes not between", value1, value2, "tranbytes");
            return (Criteria) this;
        }

        public Criteria andPacketlossIsNull() {
            addCriterion("packetLoss is null");
            return (Criteria) this;
        }

        public Criteria andPacketlossIsNotNull() {
            addCriterion("packetLoss is not null");
            return (Criteria) this;
        }

        public Criteria andPacketlossEqualTo(Boolean value) {
            addCriterion("packetLoss =", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossNotEqualTo(Boolean value) {
            addCriterion("packetLoss <>", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossGreaterThan(Boolean value) {
            addCriterion("packetLoss >", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossGreaterThanOrEqualTo(Boolean value) {
            addCriterion("packetLoss >=", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossLessThan(Boolean value) {
            addCriterion("packetLoss <", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossLessThanOrEqualTo(Boolean value) {
            addCriterion("packetLoss <=", value, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossIn(List<Boolean> values) {
            addCriterion("packetLoss in", values, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossNotIn(List<Boolean> values) {
            addCriterion("packetLoss not in", values, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossBetween(Boolean value1, Boolean value2) {
            addCriterion("packetLoss between", value1, value2, "packetloss");
            return (Criteria) this;
        }

        public Criteria andPacketlossNotBetween(Boolean value1, Boolean value2) {
            addCriterion("packetLoss not between", value1, value2, "packetloss");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}